﻿using System.Collections;
using System.Collections.Generic;
using studentSubsidy.Dao;
using studentSubsidy.Entity;
using studentSubsidy.Entity.Details;

namespace studentSubsidy.Service
{
    public class DetailsService
    {
        private DetailsDao _detailsDao = new DetailsDao();
        
        public Result getDetails(DetailsQuery detailsQuery)
        {
            return new Result(200, "搜索成功", _detailsDao.getDetails(detailsQuery), null);
        }

        public Result GetDetailsPicture(DetailsQuery detailsQuery)
        {
            List<PictureReturn> pictureList = new List<PictureReturn>();
            PictureReturn pictureReturn = new PictureReturn(_detailsDao.getDetailsPicture(detailsQuery), "测试");
            pictureList.Add(pictureReturn);
            return new Result(200, "搜索成功", pictureList, null);_detailsDao.getDetailsPicture(detailsQuery);
        }
    }
}